
namespace ntools.NetduinoGo.PlusModule.NetduinoGo.Framework
{
    public class Dns
    {
        public static IPHostEntry GetHostEntry(string host)
        {
            byte[] address = Plus.Link.Call(Link.INSTANCE_DNS, Link.COMMAND_DNS_GETHOSTENTRY, System.Text.Encoding.UTF8.GetBytes(host));
            var hostentry = new IPHostEntry();
            hostentry.AddressList = new System.Net.IPAddress[] { new System.Net.IPAddress(address) };
            return hostentry;
        }
    }
}
